﻿<Window x:Class="Sample.WPF.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="600" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Button Grid.Row="0" Height="22" Name="button1" VerticalAlignment="Top" HorizontalAlignment="Stretch" Click="button1_Click">Consultar Calendário</Button>

        <Button Grid.Row="1" Height="22" Name="button2" VerticalAlignment="Top" HorizontalAlignment="Stretch" Click="button1_Click_1">Consultar Ordens</Button>
        <ListView Grid.Row="0" Margin="0,22,0,0" Name="listView1"  ItemsSource="{Binding ResultadoConsultaCalendario}"/>
        <ListView Grid.Row="1" Margin="0,22,0,0" Name="listView2"  ItemsSource="{Binding ResultadoConsultaOrdens}">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding CodigoCliente}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding CodigoCommodity}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding CodigoMercado}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding NomeOperador}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioAfterCompra}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioAfterNet}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioAfterVenda}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioDigitadoCompra}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioDigitadoNet}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioDigitadoVenda}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioExecutadoCompra}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioExecutadoNet}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding PrecoMedioExecutadoVenda}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeAfterCompra}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeAfterNet}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeAfterVenda}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeDigitadaCompra}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeDigitadaNet}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeDigitadaVenda}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeExecutadaCompra}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeExecutadaNet}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding QuantidadeExecutadaVenda}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding Serie}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding Situacao}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding TotalAfter}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding TotalDigitado}"/>
                        <Label BorderThickness="1,1,1,1" BorderBrush="Black" Width="50" Height="24" Content="{Binding TotalExecutado}"/>
                    </StackPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </Grid>
</Window>
